-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.x: Fix ExecutorScheduler initializing Schedulers prematurely #7323
Conversation
Codecov Report
@@ Coverage Diff @@
## 3.x #7323 +/- ##
============================================
+ Coverage 99.53% 99.54% +0.01%
+ Complexity 6784 6783 -1
============================================
Files 751 751
Lines 47490 47491 +1
Branches 6378 6378
============================================
+ Hits 47269 47277 +8
+ Misses 102 96 -6
+ Partials 119 118 -1
Continue to review full report at Codecov.
|
ExecutorScheduler
had a static field referencingSchedulers
thus when usingRxJavaPlugins.createExecutorScheduler
, it would still initialize the standard schedulers despite the intention of the create method. Using the static inner holder class idiom can prevent this, similar to howSchedulers
does it.Related: #7306 (comment)